#include "junix.h"

int main(int argc, char **argv)
{
	pid_t pid1 = Fork();
	pid_t pid2 = Fork();

	printf("getpgrp:%d\n",getpgrp());

	if( pid1 && pid2){
		for(;;)	{
			int id;
			if( (id=wait(NULL)) == -1) 
				break;
			printf("exit:%d\n",id);
		}
	}

    exit(0);
}

